<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="commons/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>XXX医院管理系统</title>
	<link rel="stylesheet" href="${ctx}/static/css/pintuer.css">
	<link rel="stylesheet" href="${ctx}/static/css/admin.css">
	<script src="${ctx}/static/js/jquery.js"></script>
	<script src="${ctx}/static/js/pintuer.js"></script>
</head>
	<body>
		<div class="body">
			<div class="header bg-main">
				<div class="logo margin-big-left fadein-top">
					<h1><img src="${ctx}/static/images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />XXX医院管理中心</h1>
				</div>
				<div class="head-l">
					<a class="button button-little bg-green" ></span>用户：${username } 您好，您的权限为：${rolename }</a> &nbsp;&nbsp;
					<a class="button button-little bg-blue" href="index"><span class="icon-home"></span> 医生管理</a> &nbsp;&nbsp;
					<a class="button button-little bg-red" href="outlogin"><span class="icon-power-off"></span> 退出登录</a>
				</div>
			</div>
			<div class="leftnav">
				<div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
				<shiro:hasPermission name="/hospital/list"><h2><span class="icon-caret-right"></span>连锁管理</h2></shiro:hasPermission>
				<ul style="padding-top: 0px;" >
					<%--<h2><span class="icon-caret-right"></span><a href="hospital/list" target="right"><span class="icon-caret-right"></span>分院管理</a></h2>--%>
					<shiro:hasPermission name="/hospital/list"><h2 style="font-weight: normal"><span class="icon-caret-right" style="margin-left: 8px; padding-top: 5px;"></span>分院管理</h2></shiro:hasPermission>
					<ul>
						<li><a href="${ctx}/hospital/list" target="right"><span class="icon-caret-right" style="margin-left: 10px;"></span>分院列表</a></li>
						<li><a href="${ctx}/hospital/add" target="right"><span class="icon-caret-right" style="margin-left: 10px;"></span>添加分院</a></li>
					</ul>
					<shiro:hasPermission name="/user/hospitalAdmin/list"><h2 style="font-weight: normal"><span class="icon-caret-right" style="margin-left: 8px;"></span>分院管理员</h2></shiro:hasPermission>
					<ul>
						<li><a href="${ctx}/user/hospitalAdmin/list" target="right"><span class="icon-caret-right" style="margin-left: 10px;"></span>管理员列表</a></li>
						<li><a href="${ctx}/user/hospitalAdmin/add" target="right"><span class="icon-caret-right" style="margin-left: 10px;"></span>添加管理员</a></li>
					</ul>
				</ul>
				<shiro:hasPermission name="/user/depotAdmin/list"><h2><span class="icon-caret-right"></span>仓库管理</h2></shiro:hasPermission>
				<!--style="display:block"-->
				<ul>
					<li><a href="${ctx}/user/depotAdmin/list" target="right"><span class="icon-caret-right"></span>管理员列表</a></li>
					<li><a href="${ctx}/user/depotAdmin/add" target="right"><span class="icon-caret-right"></span>添加管理员</a></li>
				</ul>
				<shiro:hasPermission name="/user/doctor/list"><h2><span class="icon-caret-right"></span>医生管理</h2></shiro:hasPermission>
				<!--style="display:block"-->
				<ul>
					<li><a href="${ctx}/user/doctor/list" target="right"><span class="icon-caret-right"></span>医生列表</a></li>
					<li><a href="${ctx}/user/doctor/add" target="right"><span class="icon-caret-right"></span>添加医生</a></li>
				</ul>
				<shiro:hasPermission name="/user/member/list"><h2><span class="icon-caret-right"></span>会员管理</h2></shiro:hasPermission>
				<!--style="display:block"-->
				<ul>
					<li><a href="${ctx}/user/member/list" target="right"><span class="icon-caret-right"></span>会员列表</a></li>
					<li><a href="${ctx}/user/member/add" target="right"><span class="icon-caret-right"></span>添加会员</a></li>
				</ul>
				
				
				
				
				<%-- <shiro:hasPermission name=""></shiro:hasPermission> --%>

				<%--<h2><span class="icon-caret-right"></span>一级菜单</h2>--%>
				<%--<ul>--%>
					<%--<li><a href="/user/depotAdmin/add.html" target="right"><span class="icon-caret-right"></span>二级菜单1</a></li>--%>
					<%--<h2 style="font-weight: normal"><span class="icon-caret-right" style="margin-left: 8px;"></span>二级菜单2</h2>--%>
					<%--<ul>--%>
						<%--<li><a href="list.html" target="right"><span class="icon-caret-right" style="margin-left: 10px;"></span>三级菜单1</a></li>--%>
						<%--<li><a href="add.html" target="right"><span class="icon-caret-right" style="margin-left: 10px;"></span>三级菜单2</a></li>--%>
					<%--</ul>--%>
					<%--<li><a href="/user/depotAdmin/delete.html" target="right"><span class="icon-caret-right"></span>二级菜单3</a></li>--%>
					<%--<li><a href="/user/depotAdmin/edit.html" target="right"><span class="icon-caret-right"></span>二级菜单4</a></li>--%>
				<%--</ul>--%>


			</div>
			<script type="text/javascript">
				$(function() {
					$(".leftnav h2").click(function() {
						$(this).next().slideToggle(200);
						$(this).toggleClass("on");
					});
					$(".leftnav ul li a").click(function() {
						$("#a_leader_txt").text($(this).text());
						$(".leftnav ul li a").removeClass("on");
						$(this).addClass("on");
					});

					$(".close,.bg-red").click(function(){
						$(".hm,.tc").css("display","none");
					});
				});

				function add(){
					$(".hm,.tc").css("display","block");
				}

			</script>
			<ul class="bread">
				<li><a href="info" target="right" class="icon-home"> 首页</a></li>
				<li><a href="##" id="a_leader_txt">欢迎使用</a></li>
			</ul>
			<div class="admin">
				<iframe scrolling="auto" rameborder="0" src="info/info" name="right" width="100%" height="100%"></iframe>
			</div>
		</div>

	</body>

</html>